<?php

class ZFDulcet_Auth extends Zend_Auth {

	/**
	 * @var ZFDulcet_Auth 
	 */
	private static $_instance_auth = null;
	protected $_storageNamespace = 'ZFDulcet';

	protected function __construct() {
		parent::__construct();
		$this->setStorage(new Zend_Auth_Storage_Session($this->_storageNamespace));
	}

	/**
	 * @return ZFDulcet_Auth 
	 */
	public static function getInstance() {
		if (null === self::$_instance_auth) {
			self::$_instance_auth = new self();
		}

		return self::$_instance_auth;
	}

}